package com.xiefengf.elasticsearch_client;

/**
 * @author xiefengf
 * @version 1.0
 * @date 2024/3/20 22:30
 * <p>
 * 创建文档（doc）对应的模型
 */
public class User {

    private String name;
    private Integer age;
    private String sex;

    public User() {
    }

    public User(String name, Integer age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

}
